package com.dropdb.demo.bean.enumeration;

public enum ErrorReason {
    SUCESS(0, "成功"),

    GOODSNAME_SAME(611, "商品名已经存在"),

    GOODSN_SAME(611, "商品编号已经存在"),

    INTERNAL_ERROR(502, "系统内部错误"),

    AUTH_FAILED(605, "用户帐号或密码不正确"),

    NO_PERMISSION(506, "没有操作权限，请联系管理员授权"),

    UN_LOGIN(501, "系统未登录");

    private Integer code;
    private String reason;

    ErrorReason(Integer code, String reason) {
        this.code = code;
        this.reason = reason;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
